1 package com.jguild.jrpm.tools;
2
3 import org.apache.tools.ant.BuildException;
4 import org.apache.tools.ant.Task;
5 import org.apache.tools.ant.types.FileSet;
6
7 import java.util.ArrayList;
8 import java.io.File;
9
10 import com.jguild.jrpm.io.RPMFile;
11
12
13 /***
14 * Ant task used to create RPM packages.
15 * @version $Id: RPMTask.java,v 1.6 2003/11/19 13:46:14 ymenager Exp $
16 **/
17 public class RPMTask extends Task {
18 private File destfile;
19 private ArrayList filesets = new ArrayList();
20
21 /***
22 * @todo implement
23 *
24 * @param fileSet
25 */
26 public void addInner(FileSet fileSet) {
27 filesets.add(fileSet);
28 }
29
30
31
32
33 public void execute() throws BuildException {
34 RPMFile rpmfile = new RPMFile();
35 }
36
37 public void setDestfile(File destfile) {
38 this.destfile = destfile;
39 }
40 }